import React,{useState} from "react";
import { Button } from "antd";
import './HooksVote.scss'

const HooksVote=function HooksVote(props){
    return <div className="vote-box">
        <div className="header">
            <h2 className="title">{props.title}</h2>
            <span className="num">15</span>
        </div>
        <div className="main">
            <p>支持人数:10人</p>
            <p>反对人数:5人</p>
        </div>
        <div className="footer">
            <Button type="primary">支持</Button>
            <Button type="primary" danger>反对</Button>
        </div>
    </div>
}
export default HooksVote
